{layout name="layout" /}
<div class="layui-col-md10 layui-col-md-offset1">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>查看文章</legend>
    </fieldset>
    <div style="text-align: center;">
        <div class="layui-inline">
            <table id="idTest"></table>
        </div>
    </div>
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>编号</th>
            <th>标题</th>
            <th>点赞数</th>
            <th>创建时间</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
            {volist name="data" id="val"}
                <tr>
                    <td>{$val['id']}</td>
                    <td>{$val['title']}</td>
                    <td>{$val['zan']}</td>
                    <td>{$val['create_time']}</td>
                    <td><a  class="layui-btn layui-btn-danger" href="{:url('index/articleDel',['id'=>$val['id']])}">删除</a></td>
                </tr>
            {/volist}
        </tbody>
    </table>

</div>

